<?php

/**
 * EntiteTexte form.
 *
 * @package    tfe
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EntiteTexteForm extends BaseEntiteTexteForm
{
  public function configure()
  {
      unset($this['created_at'], $this['updated_at'], $this['deleted_at']);

      $this->widgetSchema['type'] = new sfWidgetFormChoice( array ('choices'=> array ('telephone'=>'telephone' , 'fax'=>'fax' , 'compte_banque'=>'compte_banque' , 'mail'=>'mail') ));

      // technique pour éviter que les formulaires "embedded" ne bloquent
      $this->setValidator('valeur',new sfValidatorString(array('max_length' => 100,'required'=>false)));

      $this->validatorSchema['id_contact'] = new sfValidatorInteger(array('required'=>false));
  }
}
